package mzpd_server

import (
	"context"
	"mzpd_server/internal/svc"
	"mzpd_server/internal/types"
	"mzpd_server/internal/utils"

	"github.com/zeromicro/go-zero/core/logx"
)

type MZServiceLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewMZServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MZServiceLogic {
	return &MZServiceLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *MZServiceLogic) MZService(req *types.MZServiceRequest) (resp *types.MZServiceResponse, err error) {
	utils.GetServiceUtils().Request(req.Method, req.Body)
	return &types.MZServiceResponse{
		Code: 200,
		Msg:  "ok",
	}, nil
}
